92fac3eb348e1b2ee4a9b94f57a33ee62d3efaa9,app/src/main/java/com/philliphsu/clock2/ringtone/RingtoneActivity.java,RingtoneActivity,onCreate,#Bundle#,102
Before Change
super.onCreate(savedInstanceState);
ButterKnife.bind(this);
if ((mRingingObject = getIntent().getParcelableExtra(EXTRA_RINGING_OBJECT)) == null)
throw new IllegalStateException("Cannot start RingtoneActivity without a ringing object");
sIsAlive = true;
After Change
super.onCreate(savedInstanceState);
ButterKnife.bind(this);
final byte[] bytes = getIntent().getByteArrayExtra(EXTRA_RINGING_OBJECT);
if (bytes == null) {
throw new IllegalStateException("Cannot start RingtoneActivity without a ringing object");
}
mRingingObject = ParcelableUtil.unmarshall(bytes, getParcelableCreator());
sIsAlive = true;
getWindow().addFlags(WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON);